from django.contrib import admin
from app_blog.models import Blog, Advertisement


# Register your models here.
@admin.register(Blog)
class Blog(admin.ModelAdmin):
    list_display = ['name', 'title', 'theme']


@admin.register(Advertisement)
class AdvertisementAdmin(admin.ModelAdmin):
    list_display = ['title', 'content', 'phone', 'img', 'create_time']
